import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const USER: AppRouteRecordRaw = {
  path: "/holes",
  name: "holes",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.holes",
    icon: "icon-tool",
    requiresAuth: true,
    order: 7
  },
  children: [
    {
      path: "scanTasks",
      name: "ScanTasks",
      component: () => import("@/views/holes/scanTasks/index.vue"),
      meta: {
        locale: "漏扫任务",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "scanTools",
      name: "ScanTools",
      component: () => import("@/views/holes/scanTools/index.vue"),
      meta: {
        locale: "漏扫工具",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "scanReport",
      name: "ScanReport",
      component: () => import("@/views/holes/scanReport/index.vue"),
      meta: {
        locale: "漏扫报告",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "holesList",
      name: "HolesList",
      component: () => import("@/views/holes/holesList/index.vue"),
      meta: {
        locale: "漏洞列表",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "holesList",
      name: "HolesList",
      component: () => import("@/views/holes/holesList/index.vue"),
      meta: {
        locale: "漏洞通报",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
}

export default USER
